package com.lyx.fileio;

import java.io.*;

public class Exercise01 {
    public static void main(String[] args) {

        InputStream is = null;
        PrintWriter pw = null;
        BufferedReader br = null;
        String line;
        int n;
        try {
            br = new BufferedReader(new FileReader("C:\\developer\\myTest.txt"));
            while ((line = br.readLine()) != null){
                System.out.println(line);
            }
        }catch (IOException e){
            e.printStackTrace();
        }finally {
            if (br!=null){
                try {
                    br.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }

    }
}
